﻿@model GameControllerModel.Servers
<div class="pageHeader" style="border-bottom: none;">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    游戏名称：@Model.Game.Name
                </td>
                <td>
                </td>
            </tr>
        </table>
        <table class="searchContent">
            <tr>
                <td>
                    上线时间：@Model.Game.OpendOn.ToString("yyyy-MM-dd HH:mm:ss")
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/game/server/detail?gameId=@Model.Game.Id" target="dialog" title="添加 @Model.Game.Name 区服"
                   mask="true" height="370" onclick="javascript:void(0);" rel="game/server/info">
                <span>添 加</span></a></li>
            <li class="line">line</li>
            <li><a class="edit" href="/game/server/detail/{param}?gameId=@Model.Game.Id" target="dialog" title="修改 @Model.Game.Name 区服"
                   mask="true" height="370" onclick="javascript:void(0);" rel="game/server/info">
                <span>修 改</span></a></li>
        </ul>
    </div>
    <table class="table" width="100%" layouth="138">
        <thead>
            <tr>
                <th width="50">
                    Id
                </th>
                <th width="120">
                    名 称
                </th>
                <th>
                    是否参与试玩
                </th>
                <th width="100">
                    优先级
                </th>
                <th width="130">
                    开服时间
                </th>
                <th width="200">
                    游戏参数
                </th>
                <th width="80">
                    状 态
                </th>
                <th width="130">
                    添加时间
                </th>
            </tr>
        </thead>
        <tbody>
            @foreach (var o in Model.GameServers)
            {
                <tr target="param" rel=" @o.Id">
                    <td>
                        @o.Id
                    </td>
                    <td>
                        @(o.Name)
                        (@o.Alias)
                    </td>
                    <td>
                        @o.JoinTrial
                    </td>
                    <td>
                        @o.Priority
                    </td>
                    <td>
                        @o.OpendOn.ToString("yyyy-MM-dd HH:mm:ss")
                    </td>
                    <td>@o.Params
                    </td>
                    <td>@o.Status
                    </td>
                    <td>
                        @o.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss")
                    </td>
                </tr>
            }
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>共 @Model.GameServers.Count 条</span>
        </div>
    </div>
</div>
